import os

# 判断系统是windows，还是linux
def get_os():
    if os.name == "nt":
        return "Windows"
    else:
        return "Linux"
os_name = get_os()

# 项目工作目录
WorkPath = os.path.dirname(os.path.abspath(__file__)) + '/'
LogFilePath_assignment = WorkPath + 'assignment.log'
LogFilePath_exec = WorkPath + 'exec.log'
# 本地源数据存放路径
# LocalDataRootPath = WorkPath + 'database/'
# LocalDataRootPath = "H:\\x86\\update.cs2c.com.cn/"
LocalDataRootPath = "H:\\centos_replace\\"

# 服务器外网源地址
# 测试用：外网源地址
onlinerepo = "https://update.cs2c.com.cn/NS/V10/V10SP3/os/adv/lic/base/x86_64"